From b4b74a3c6cb47cd4c1035700add4b03e838f4b7c Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 20 Aug 2008 01:13:17 +0000 Subject: [PATCH] [PATCH 7/7] bgo543308 - Remove the default_width/height stuff, since we are not using it anymore Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=21168 --- gtk/gtkfilechooserdefault.c | 12 ------------ gtk/gtkfilechooserprivate.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 50e3810a69..6e82cff1c4 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -5887,18 +5887,6 @@ gtk_file_chooser_default_size_allocate (GtkWidget *widget, impl = GTK_FILE_CHOOSER_DEFAULT (widget); GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->size_allocate (widget, allocation); - - impl->default_width = allocation->width; - impl->default_height = allocation->height; - - if (impl->preview_widget_active && - impl->preview_widget && - GTK_WIDGET_DRAWABLE (impl->preview_widget)) - impl->default_width -= impl->preview_widget->allocation.width + PREVIEW_HBOX_SPACING; - - if (impl->extra_widget && - GTK_WIDGET_DRAWABLE (impl->extra_widget)) - impl->default_height -= GTK_BOX (widget)->spacing + impl->extra_widget->allocation.height; } static gboolean diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 39be43366a..ef60734fe6 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -282,9 +282,6 @@ struct _GtkFileChooserDefault GSource *shortcuts_drag_outside_idle; #endif - gint default_width; - gint default_height; - /* Flags */ guint local_only : 1; -- 2.30.2